//
//  BKAUICollectionViewCalendarLayout.h
//  TestCollectionView
//
//  Created by sunshinfight@163.com on 2019/4/17.
//  Copyright © 2019 sunshinfight@163.com. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "JXCalendarModel.h"

NS_ASSUME_NONNULL_BEGIN

static NSString *JXColletionKindYear = @"JXColletionKindYear";
static NSString *JXColletionKindMonth = @"JXColletionKindMonth";

@interface JXCalendarLayout : UICollectionViewLayout
@property (assign, nonatomic) int32_t startYear;
@property (assign, nonatomic) int32_t endYear;
@property (strong, nonatomic) NSMutableArray *attributess;
@property (strong, nonatomic) NSMutableArray *itemAttributess;
@property (strong, nonatomic) NSMutableArray *headAttributess;

@property (nonatomic) UIEdgeInsets sectionInsets;
@property (nonatomic) UIEdgeInsets monthHeaderInsets;
@property (nonatomic) UIEdgeInsets yearHeaderInsets;
@property (nonatomic) CGFloat minimumLineSpacing;
@property (nonatomic) CGFloat minimumInteritemSpacing;
@property (nonatomic) CGFloat itemHeight;

// 时间的数据源，方便选中时查询
@property (strong, nonatomic) NSMutableArray<NSMutableArray<JXCalendarModel* >* > *dateDataSource;
@end

NS_ASSUME_NONNULL_END
